
#include <stdio.h>
#include <string.h>

char * fun(char *p1, char *p2)
{
  int i;
  i = strcmp(p1, p2);
  if(1==i)
  {
    return p1;
  }
  else
  {
    return p2;
  }

}

void main()
{
  char *s;
  char *(*pf)(char *pp1, char *pp2);
  pf = &fun;
  s = (*pf)("aa", "bb");
  printf("%s\n",s);
}